public class Config {

    // 默认配置，被config.yaml覆盖
    int height = 500, width = 500;
    int boardHeight = 500, boardWidth = 500;
    int fpsUpdateGap = 1000;
    int fpsLimit = 60;
    String frameName = "Dead or Alive";

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getBoardHeight() {
        return boardHeight;
    }

    public void setBoardHeight(int boardHeight) {
        this.boardHeight = boardHeight;
    }

    public int getBoardWidth() {
        return boardWidth;
    }

    public void setBoardWidth(int boardWidth) {
        this.boardWidth = boardWidth;
    }

    public int getFpsUpdateGap() {
        return fpsUpdateGap;
    }

    public void setFpsUpdateGap(int fpsUpdateGap) {
        this.fpsUpdateGap = fpsUpdateGap;
    }

    public int getFpsLimit() {
        return fpsLimit;
    }

    public void setFpsLimit(int fpsLimit) {
        this.fpsLimit = fpsLimit;
    }

    public String getFrameName() {
        return frameName;
    }

    public void setFrameName(String frameName) {
        this.frameName = frameName;
    }

    @Override
    public String toString() {
        return "Config{" +
                "height=" + height +
                ", width=" + width +
                ", boardHeight=" + boardHeight +
                ", boardWidth=" + boardWidth +
                ", fpsUpdateGap=" + fpsUpdateGap +
                ", fpsLimit=" + fpsLimit +
                ", frameName='" + frameName + '\'' +
                '}';
    }
}
